package com.szzg10.thinking.chapter11;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;

public class ForEachCollections {

	public static void main(String[] args) {
		Collection<String> collection = new LinkedList<String>();
		Collections.addAll(collection, "Take the long way home".split(" "));
		
		for(String element: collection) {
			System.out.println(element);
		}
	}
}
